home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 84 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: delphi.harz.de!mauser
  2. From: mauser@delphi.harz.de (Gerald Mauser)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: C64 Electronics Projects
  5. Date: 2 Jan 1996 16:54:28 GMT
  6. Organization: (=?ISO-8859-1?Q?Kr=FCmelbr=F6tchenb=E4cker?=)
  7. Message-ID: <4cbo04$7m@gameport.delphi.harz.de>
  8. References: <wiz-2012951502370001@17.32.67.13> <4bq1ru$6pc@usenet.srv.cis.pitt.edu>
  9. NNTP-Posting-Host: titanic.delphi.harz.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. David M Holland (dmhst7+@pitt.edu) wrote:
  16. : Patrick Fleming (wiz@apple.com) wrote:
  17. : : Can anyone recommend a good book on C64 interfacing projects?  I would like to 
  18. : : hook up something to the cartridge port for simple electronics control.
  19.  
  20. : (...) there are a lot of projects that use the user 
  21.  
  22. : port (same on vic and c64) so its worth a look. 
  23.  
  24. I personell use the user-Prot.
  25. It's the most simple Prot for programming.
  26.  
  27. The USER-PORT is an 8-bit parralelprot + 1 dataline.       
  28.  
  29. The 8-bis parralel prot prograaming (PORT B)
  30. In adress 56579 you choose wether you whant so send or to get datas.
  31. POKE 56579,255 all 8 datalines for Output
  32. POKE 56579,0   all 8 datalines for Input
  33. (It it possible to hab for exapmle 3 INPUT und 5 OUTPUT lines)
  34.  
  35. In Adress 56577 you poke your output datas in or you recive datas, 
  36. depend on register 1 (adress 56579)
  37.  
  38. If you use in and outputline the same time make shure not to mix
  39. ab the BITS 
  40.  
  41.  
  42. There is also a line you can use as an extra dataline (PORT A)
  43.  
  44. Is the 3 one ( Nr.2 if you start counting form Zero)
  45.  
  46. In Adress 56578, bit 2 you choos wether it shut be an input or output line
  47. POKE 56578, PEEK(56578) AND 251  sets line for INPUT
  48. POKE 56578, PEEK(56578) OR 4     sets line for OUTPUT
  49.  
  50. In Adress 56576 bit 2 you find your incomming Datas or you put yout
  51. outgoing datas in
  52. POKE 56576,peek(56576)or 4       line is HI
  53. POKE 56576,peek(56576)and251     linje is LO
  54.  
  55.  
  56. By the Way: IT IS possibel to ypou the joystickport to send OR to recive DATAS
  57.  
  58. But the Programming is not that easy (well it's difficult to decribe)
  59.  
  60. Intrestig is the inbuild AD-Port from the C64, used for Paddels
  61. IT's Part of the SID.
  62.  
  63. The C64 has got to AD. The value of them are in adress 54297 and 54298
  64.  
  65. Normally the AD in Joystickport 1 are used.
  66. Whitch Port is used you can CHOOSE in adress 56320 bit 7..
  67. POKE 56320,peek(56320)and(127) to use PORT 1 
  68. POKE 56320,PEEK(56320)or128    to use PORT 2
  69.  
  70. By the way the AD reactacs on resistors
  71.  
  72. All right, thats all buy now. IF you got any more questions, p/m
  73. r you realy whant to use the Joystickport, P/M
  74. (By the Way to yous the JOYSTICKPORT for output is theory,
  75. i've never tryed this on my own).
  76.  
  77. Ciao
  78.     Gerald
  79.  
  80. PS: Wher to find what on the HArdweareside: Have a look on the last pages
  81. of your C64 Handbock.
  82.  
  83. --
  84. Gerald Hauser            Leibnizstr. 16/2; 38678 Clausthal-Zellerfeld
  85. Tel. 05323-2071            E-Mail: mauser@delphi.harz.de
  86.